package com.ruoyi.mk.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mk.mapper.MkWirelessMapper;
import com.ruoyi.mk.domain.MkWireless;
import com.ruoyi.mk.service.IMkWirelessService;

/**
 * 终端管理Service业务层处理
 * 
 * @author guan
 * @date 2021-12-10
 */
@Service
public class MkWirelessServiceImpl implements IMkWirelessService 
{
    @Autowired
    private MkWirelessMapper mkWirelessMapper;

    /**
     * 查询终端管理
     * 
     * @param id 终端管理主键
     * @return 终端管理
     */
    @Override
    public MkWireless selectMkWirelessById(Long id)
    {
        return mkWirelessMapper.selectMkWirelessById(id);
    }

    /**
     * 查询终端管理列表
     * 
     * @param mkWireless 终端管理
     * @return 终端管理
     */
    @Override
    public List<MkWireless> selectMkWirelessList(MkWireless mkWireless)
    {
        return mkWirelessMapper.selectMkWirelessList(mkWireless);
    }

    /**
     * 新增终端管理
     * 
     * @param mkWireless 终端管理
     * @return 结果
     */
    @Override
    public int insertMkWireless(MkWireless mkWireless)
    {
        mkWireless.setCreateTime(DateUtils.getNowDate());
        return mkWirelessMapper.insertMkWireless(mkWireless);
    }

    /**
     * 修改终端管理
     * 
     * @param mkWireless 终端管理
     * @return 结果
     */
    @Override
    public int updateMkWireless(MkWireless mkWireless)
    {
        mkWireless.setUpdateTime(DateUtils.getNowDate());
        return mkWirelessMapper.updateMkWireless(mkWireless);
    }

    /**
     * 批量删除终端管理
     * 
     * @param ids 需要删除的终端管理主键
     * @return 结果
     */
    @Override
    public int deleteMkWirelessByIds(Long[] ids)
    {
        return mkWirelessMapper.deleteMkWirelessByIds(ids);
    }

    /**
     * 删除终端管理信息
     * 
     * @param id 终端管理主键
     * @return 结果
     */
    @Override
    public int deleteMkWirelessById(Long id)
    {
        return mkWirelessMapper.deleteMkWirelessById(id);
    }
}
